// import CryptoJS from 'crypto-js';
// import JSEncrypt from 'jsencrypt'
// import { encode } from 'js-base64';
// import { md5 } from 'js-md5';

const publicKey = `-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdH
nzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ==
-----END PUBLIC KEY-----`;

export const aesKey = "065cf081785d6a12445020a6b670360c";

// export const rasEncipher = () => {
//   const encrypt = new JSEncrypt();
//   encrypt.setPublicKey(publicKey);
//   console.log('encode(aesKey)', encode(aesKey))
//   const encryptMsg = encrypt.encrypt(encode(aesKey));
//   return encryptMsg;
// };

// export const aesEncipher = (content: any, key1: string) => {
//   const key = CryptoJS.enc.Utf8.parse(key1);
//   return CryptoJS.AES.encrypt(JSON.stringify(content), key, {
//     mode: CryptoJS.mode.ECB,
//     padding: CryptoJS.pad.Pkcs7,
//   }).toString();
// };

// export const md5Encipher = (passWord: string) => {
//   return md5(passWord);
// }